package com.bwie.auth.remote;

import com.bwie.common.domain.User;
import com.bwie.common.domain.request.UserRequest;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @className: UserRemote
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 * @date: 2025/10/22 10:03
 */
@FeignClient(value = "bwie-system")
public interface UserRemote {
    @PostMapping("/user/login")
    Result<User> nameLogin(@RequestBody UserRequest userRequest);

    @PostMapping("/user/userAdd")
    void userAdd(@RequestBody UserRequest userRequest);


    @PostMapping("/user/phoneLogin")
    Result<User> phoneLogin(@RequestBody UserRequest userRequest);
}
